package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmChannelPageReqDto;
import com.heima.model.wemedia.pojos.WmChannel;

/**
 * Author: Administrator
 * CreateTime: 2024/9/22
 * Project: heima-leadnews
 */
public interface WmChannelService extends IService<WmChannel> {
    /**
     * 查询所有频道
     * @return
     */
    public ResponseResult findAll();

    /**
     * 分页查询
     * @param dto
     * @return
     */
    ResponseResult list(WmChannelPageReqDto dto);

    /**
     * 新增频道
     * @param wmChannel
     * @return
     */
    ResponseResult add(WmChannel wmChannel);

    /**
     * 删除频道
     * @param id
     * @return
     */
    ResponseResult del(Integer id);

    /**
     * 修改频道
     * @param wmChannel
     * @return
     */
    ResponseResult update(WmChannel wmChannel);
}
